﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;

namespace APACWP8.View
{
    public partial class PanoramaPage5 : PhoneApplicationPage
    {
        public PanoramaPage5()
        {
            InitializeComponent();
        }
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            CheckOrientation(LayoutRoot);
        }
        private void CheckOrientation(Grid content)
        {

            if ((Orientation & PageOrientation.Portrait) == (PageOrientation.Portrait))
            {
                content.Margin = new Thickness(0, 0, 0, 0);
            }
            else if ((Orientation & PageOrientation.LandscapeLeft) == (PageOrientation.LandscapeLeft))
            {
                content.Margin = new Thickness(0, 0, 36, 0);
            }
            else if ((Orientation & PageOrientation.LandscapeRight) == (PageOrientation.LandscapeRight))
            {
                content.Margin = new Thickness(36, 0, 0, 0);
            }
        }
        private async void TextBlock_Tap_2(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/MOU/Pages/default.aspx"));

        }

        private async void TextBlock_Tap_3(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://getbif/"));
        }

        private async void TextBlock_Tap_4(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/SCE/Reference Repository/APAC/Useful Templates/POE From End Customers (PS-all value and Non-PS more than $25k).docx"));
        }

        private async void Image_Tap_2(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://mspolicy/CORPORATEFUNCTIONS/Finance/AccountingPolicies/3Expenses/35OtherExpenses/Pages/Policy%203%205%209%20Business%20Investment%20Fund.aspx"));

        }

        private async void Image_Tap_3(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/SideAgreements/Pages/EscalationProcess.aspx"));

        }

        private async void TextBlock_Tap_6(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("mailto:VLAR@Microsoft.com"));

        }

        private async void Image_Tap_4(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("https://microsoft.sharepoint.com/sites/mspolicy/CentralizedFunctions/SMSG/smsgintegrity/financialintegrity/pages/side agreements.aspx"));

        }

        private async void TextBlock_Tap_5(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/SCE/Reference Repository/APAC/Useful Templates/POE From Partners (value $5,000-24,999).docx"));

        }

        private async void Image_Tap_1(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("https://microsoft.sharepoint.com/sites/mspolicy/CentralizedFunctions/SMSG/volumelicensingpricingpolicies/agreements/pages/wwlp 1 8 non std sales and distrib agreements memoranda of understanding and letters of intent.aspx"));

        }

        private async void TextBlock_Tap_1(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("https://microsoft.sharepoint.com/sites/mspolicy/CentralizedFunctions/SMSG/volumelicensingpricingpolicies/empowerment/pages/wwlp 2 1 field empowerment.aspx"));

        }
        private void SettingClick_Click(object sender, EventArgs e)
        {
            App.RootFrame.Navigate(new Uri("/View/SettingPage.xaml", UriKind.Relative));
        }

        private void SearchClick_Click(object sender, EventArgs e)
        {
            App.RootFrame.Navigate(new Uri("/View/SearchPage.xaml", UriKind.Relative));
        }

        private async void Image_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("https://microsoft.sharepoint.com/sites/mspolicy/CentralizedFunctions/Finance/accountingpolicies/3expenses/35otherexpenses/pages/policy 3 5 9 business investment fund.aspx"));
        }

        private async void TextBlock_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://mspolicy/CORPORATEFUNCTIONS/PROCUREMENT/PurchasingSpending/5PayingPurchasing/Pages/default.aspx"));
        }

        private async void TextBlock_Tap_7(object sender, System.Windows.Input.GestureEventArgs e)
        {
             await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/SCE/Reference Repository/APAC/useful templates/POE From Partners (value $5,000-24,999).docx"));
        }

        private async void TextBlock_Tap_8(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/SCE/Reference Repository/APAC/useful templates/POE From End Customers (PS-all value and Non-PS more than $25k).docx"));

        }

        private async void O36Sample(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/External BIF POE Templates/O365 EA Deployment Plan Milestone Sample.pdf"));

        }

        private async void O36ASUM(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/External BIF POE Templates/O365 EA Active Seat Usage Milestone Sample.JPG"));

        }

        private async void O36Deploy(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/External BIF POE Templates/O365 Deploy Fast Track Portal POE Sample.pdf"));

        }

        private async void O36MOD(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/External BIF POE Templates/O365 Deploy Active Seat Usage MOD Sample.docx"));

        }

        private async void ProofO36Sample(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/External BIF POE Templates/POE From Partners.docx"));

        }

        private async void O36ASUMTAPS(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/External BIF POE Templates/Top Apps ID Sample.docx"));

        }

        private async void O36DeployApp(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/External BIF POE Templates/Top Apps Screenshot Sample.docx"));

        }

        private async void O36ASUMTAPSSAM(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/External BIF POE Templates/SAM SOW Sample.docx"));

        }

        private async void O36DeployAppSAM(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/External BIF POE Templates/SAM ELP Sample.xlsm"));

        }

        private async void TextBlock_Tap_9(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/SCE/Reference Repository/APAC/useful templates/POE From End Customers (PS-all value and Non-PS more than $25k).docx"));

        }

        private async void TextBlock_Tap_10(object sender, System.Windows.Input.GestureEventArgs e)
        {
            await Windows.System.Launcher.LaunchUriAsync(new Uri("http://finweb/smsg/controlcompliance/policyexceptions/Pages/Home.aspx"));
            
        }
    }
}